package com.victor.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.victor.dao.ActivityAppDao;
import com.victor.entity.JQActivity;
import com.victor.entity.Jingqulist;
import com.victor.entity.YYactivityOrder;
import com.victor.service.ActivityAppService;

@Service
public class ActivityAppServiceImpl implements ActivityAppService {

	@Autowired
	private ActivityAppDao dao;

	// 获取景区演艺活动列表
	@Override
	public List<JQActivity> getYYactivity(String jqAcOneID, String jqAcTwoID, String priceLifting) {
		return dao.getYYactivity(jqAcOneID, jqAcTwoID, priceLifting);
	}

	// 获取景区演艺活动详情
	@Override
	public JQActivity getYYactivityXQ(String jqacid) {
		return dao.getYYactivityXQ(jqacid);
	}

	// 提交演艺活动订单
	@Override
	public boolean submitYYactivityOrder(YYactivityOrder yyactivityOrder) {
		return dao.submitYYactivityOrder(yyactivityOrder) > 0 ? true : false;
	}

	// 查询团购列表 ifgroupbuy==1
	@Override
	public List<Jingqulist> getGroupbuyjqlist(String jqclassid) {
		return dao.getGroupbuyjqlist(jqclassid);
	}
}
